<div class="m10 w600">
<table class="table">
<thead>
<tr>
  <th class="w40 fn-tac">ID</th>
  <th>题库类型名称</th>
</tr>
</thead>
<tbody>
{loop $list $rs}
<tr>
  <td class="fn-tac">{$rs[id]}</td>
  <td><a href="javascript:void(0);" title="选择课程" class="pt" tpl="{$rs['id']}">{$rs[name]}</a></td>
</tr>
{/loop}
</tbody>
</table>
</div>
<script language="javascript">
Do('dialog',function(){
    $('.pt').click(function(){
        var origin = artDialog.open.origin;
        var aValue = $(this).attr("tpl");
        var input = origin.document.getElementById('{$frameid}');
        input.value = aValue;
        input.select();
        $.dialog.close()
    })
})
</script>
